

#import <Foundation/Foundation.h>
#import <AFNetworking.h>
#import <UIImageView+WebCache.h>

typedef void(^SuccessBlock)(id result);
typedef void(^FailBlock)(NSError *error);

@interface QPNetWorkingTool : NSObject

+ (void) getNetWorkingTool:(NSString *)urlStr dic:(NSDictionary *)dic success:(SuccessBlock)success fail:(FailBlock)fail;

+ (void) postNetWorkingTool:(NSString *)urlStr dic:(NSDictionary *)dic success:(SuccessBlock)success fail:(FailBlock)fail;

+ (BOOL)checkTheNetWorking;
@end
